package com.journey.demo02;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.journey.demo02")
//自动扫描 相当于<context:component-scan base-package="com.journey.demo02" annotation-config="true"/>
public class Demo02Application extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(Demo02Application.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(Demo02Application.class, args);
	}
}
